#!/usr/bin/python

import sys, os
import time
from socket import *



#serverHost =  'localhost' 
#serverPort = 7500

s = socket(AF_INET, SOCK_STREAM)    # create a TCP socket

print "Connecting"
s.connect((serverHost, serverPort)) # connect to server on the port print "Sending"
i = 1
while i <= 5:
    print i
    #s.send("")
    #s.send("")
    s.send("" % (str(i + 12344)))
    print "_____________________________________________________________"
    print "Receiving"
    data = s.recv(10000)                 # receive up to 1K bytes
    print data
    time.sleep(0.25)
    i = i + 1
s.close()
